import request from "@/router/axios";
import serviceList from "@/config/serviceList";
import { baseURL } from "@/api/common";

const { naoai } = serviceList

// 列表接口
export const getList = (data) => {
  return request({
    url: `${baseURL}api/${naoai}/saaSProduct/pageUserApplySaaSProducts`,
    method: 'post',
    data
  })
}

// 获取所有saas产品
export const getProductList = (data) => {
  return request({
    url: `${baseURL}api/${naoai}/saaSProduct/listAllSaaSProduct`,
    method: 'post',
    data
  })
}

// 开通接口
export const apply = (data) => {
  return request({
    url: `${baseURL}api/${naoai}/saaSProduct/adminExamineApplySaaSProduct`,
    method: 'post',
    data
  })
}
// 续期接口
export const renewal = (data) => {
  return request({
    url: `${baseURL}api/${naoai}/saaSProduct/updateExpireTimeApplySaaSProduct`,
    method: 'post',
    data
  })
}